<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增车辆信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-carinfo-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="plateNo" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌颜色：</label>
                <div class="col-sm-8">

                    <select name="plateColor" class="form-control m-b">
                        <option value="蓝色">蓝色</option>
                        <option value="黄色">黄色</option>
                        <option value="黑色">黑色</option>
                        <option value="白色">白色</option>
                        <option value="渐变绿色">渐变绿色</option>
                        <option value="黄绿双拼色">黄绿双拼色</option>
                        <option value="蓝白渐变">蓝白渐变</option>
                    </select>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆类型：</label>
                <div class="col-sm-8">
                    <select name="vehicleType" class="form-control m-b">
                        <option value="一类客车">一类客车</option>
                        <option value="二类客车">二类客车</option>
                    </select>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆识别代码：</label>
                <div class="col-sm-8">
                    <input name="vin" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆使用性质：</label>
                <div class="col-sm-8">
                    <select name="vehicleUseCharacter" class="form-control m-b">
                        <option value="家用">家用</option>
                        <option value="公用">公用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外廓尺寸长：</label>
                <div class="col-sm-8">
                    <input name="outsideDimensionsLength" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外廓尺寸宽：</label>
                <div class="col-sm-8">
                    <input name="outsideDimensionsWidth" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外廓尺寸高：</label>
                <div class="col-sm-8">
                    <input name="outsideDimensionsHeight" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车轮数：</label>
                <div class="col-sm-8">
                    <input name="wheelCount" class="form-control"  type="text" required>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">核载人数：</label>
                <div class="col-sm-8">
                    <input name="approvedCount" class="form-control"  type="text" required>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发动机号：</label>
                <div class="col-sm-8">
                    <input name="engineNo" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车型四码：</label>
                <div class="col-sm-8">
                    <input name="vehicleModelCode" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车轴数：</label>
                <div class="col-sm-8">
                    <input name="axleCount" class="form-control"  type="text" required>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">轴距：</label>
                <div class="col-sm-8">
                    <input name="axleDistance" class="form-control"  type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "carinfo/carinfo"
        $("#form-carinfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-carinfo-add').serialize());
            }
        }
    </script>
</body>
</html>